package com.soft.zosagent.common;

/**
 * @description: 日志级别
 * @author: cinbo，chenyinbo
 * @create: 2020-12-07 15:40
 */
public enum LogLevel {
    TRACE(128,"TRACE"),
    DEBUG(64,"DEBUG"),
    INFO(32,"INFO"),
    WARN(16,"WARN"),
    ERROR(8,"ERROR");


    LogLevel(int level, String name){
        this.loglevel = level;
        this.levelName = name;
    }
    private int loglevel;
    private String levelName;

    public int toValue(){
        return loglevel;
    }
    public String getLevelName(){
        return levelName;
    }
}
